package com.rao.gmall.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

/**
 * @author nzmxfan
 * @create 2021-08-22-14:54
 */
@ConfigurationProperties(prefix = "service.order")
@Component
@Data
public class OrderProperties {
    private Integer ttl;
    private TimeUnit unit = TimeUnit.MINUTES;
}
